package com.ws.ssmzongjie3.service.impl;

import com.ws.ssmzongjie3.bean.Acl_Permission;
import com.ws.ssmzongjie3.bean.Acl_User;
import com.ws.ssmzongjie3.mapper.Acl_UserMapper;
import com.ws.ssmzongjie3.service.Acl_UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class HouUserServiceImpl implements Acl_UserService {
    @Autowired
    private Acl_UserMapper houUserMapper;
    @Override
    public Acl_User getUserByName(Acl_User user) {
        return houUserMapper.getUserByName(user);
    }

    @Override
    public Acl_User getUserById(Acl_User user) {
        return houUserMapper.getUserById(user);
    }

    @Override
    public int updateUser(Acl_User user) {
        return houUserMapper.updateUser(user);
    }

    @Override
    public int insertUser(Acl_User user) {
        return houUserMapper.insertUser(user);
    }

    @Override
    public int deleteById(Acl_User user) {
        return houUserMapper.deleteById(user);
    }

    @Override
    public List<Acl_User> listUser(Acl_User user) {
        return houUserMapper.listUser(user);
    }

    @Override
    public Acl_User getlogin(Acl_User user) {
        return houUserMapper.getlogin(user);
    }

    @Override
    public List<Acl_User> listUserWithMerchant(Acl_User user) {
        return houUserMapper.listUserWithMerchant(user);
    }

    @Override
    public List<Acl_Permission> listPermissionsByUserId(Acl_User user) {
        return houUserMapper.listPermissionsByUserId(user);
    }
}
